<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.sql.*,com.dao.*,com.model.*,java.util.*" %>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>

</head>
<body>
	<table border="1">
		<tr>
			<th>ID</th>
			<th>用户名</th>
			<th>密码</th>
			<th>操作</th>
		</tr>
		<%
			List<Users> userslist=(List<Users>)request.getAttribute("userslist");
			for (Users u : userslist) {
		%>
		<tr>
			<td><%=u.getId()%></td>
			<td><%=u.getUserName()%></td>
			<td><%=u.getPassword()%></td>
			<td><a href="delete?id=<%=u.getId()%>">删除</a>
			<a href="UserManageServlet?function=edit&id=<%=u.getId()%>">修改</a></td>
		</tr>
		<%
			}
		%>
	</table>
</body>
</html>